<?php
	$EmpID = $_POST['EmpID'];
	$EmpFname = $_POST['EmpFname'];
	$EmpLname = $_POST['EmpLname'];
	$StartDate = $_POST['StartDate'];
	$EndDate = $_POST['EndDate'];
	$EmpStatus = $_POST['EmpStatus'];
	$Address = $_POST['Address'];
	$Email = $_POST['Email'];
	$PhoneNum = $_POST['PhoneNum'];
	$ManagerID = $_POST['ManagerID'];
	
	$conn = new mysqli('localhost', 'root', '', 'sevenbits');
	$sql = "UPDATE employees SET" .
		" EmpFname='$EmpFname'," .
		" EmpLname='$EmpLname'," .
		" StartDate='$StartDate'," .
		" EndDate='$EndDate'," .
		" EmpStatus='$EmpStatus'," .
		" Address='$Address'," .
		" Email='$Email'," .
		" PhoneNum='$PhoneNum'," .
		" ManagerID='$ManagerID'" .
		" WHERE EmpID='$EmpID'";
	$conn->query($sql);
	echo $sql;
?>